home *** CD-ROM | disk | FTP | other *** search
- /****i* SOURCE_FILE/INFO
- *
- * NAME
- * location.js
- *
- * USAGE
- * Part of IS JavaScript Library.
- *
- * COPYRIGHT
- * Copyright ⌐ 1999-2000 Innovative Systems SRL.
- * All Rights Reserved.
- *
- * This is an unpublished work protected by Innovative Systems SRL
- * as a trade secret, and is not to be used or disclosed except as
- * expressly provided in a written license agreement executed by
- * you and Innovative Systems SRL.
- *
- * <copyright@innovative.ro>
- *
- * NOTES
- * JavaScript code.
- *
- *****/
-
- /****h* IS_JavaScript_Library/location
- *
- * NAME
- * IS JavaScript Library / location module
- *
- * DESCRIPTION
- * Location related functionality.
- *
- ****/
-
- var IS = IS_getLibHandle();
- if (typeof (IS) != "undefined" && typeof (IS.Location) == "undefined")
- {
-
- /****c* ISJS/Location
- *
- * NAME
- * ISJS::Location (id, target, href)
- *
- * USAGE
- * id -- Object identifier.
- * Distinguishes the location within a locations collection.
- * Should be unique among the collection.
- * target -- Name of a frame within the browser.
- * href -- Uniform Resource Locator (the URL) to be loaded by the browser.
- *
- * DESCRIPTION
- * By selecting a tree or menu item an ôactionö is usually performed. Within IS
- * JavaScript library such an ôactionö is translated to one or more commands given to the
- * browser to load a specified URL into a specified frame.
- * ISJS::Location objects gather together these two pieces of information: a target
- * browser frame (target property) and an URL (href property).
- * Every item, both menu and tree, has associated a collection of locations retaining
- * thus the actions attached to them.
- *
- * SEE ALSO
- * Container, Menu, Tree.
- *
- ****/
- function IS_Location (id, target, href)
- {
- // __proto__ initialization
- this.__proto__ = IS_Location.prototype;
-
- // properties
- this.id = id;
- this.target = target;
- this.href = href;
- }
-
- // add Location class to IS namespace
- IS.__proto__.Location = IS_Location;
- }
-